<template>
  <div class="err-container">
    <div class="svg">
      <icon name="no-content" class="svg-icon" />
    </div>
    <p class="title">{{ $t('request_error_please_click_to_try_again') }}</p>
    <div class="back pointer" @click="refresh">{{ $t('refresh') }}</div>
  </div>
</template>

<script>
export default {
  name: 'ErrorPage',

  methods: {
    refresh() {
      this.$emit('refresh');
    }
  },
};
</script>

<style lang="scss" scoped>
@import '~assets/styles/variable.scss';

.err-container {
  padding-top: 40px;
  min-height: 600px;
}

.svg {
  margin: 0 auto 20px;
  width: 144px;
  height: 144px;

  .svg-icon {
    width: 144px;
    height: 144px;
  }
}

.title {
  font-size: 16px;
  color: rgba(12, 12, 28, 0.7);
  text-align: center;
  line-height: 24px;
  margin-bottom: 24px;
}

.back {
  width: 167px;
  height: 56;
  font-size: 16px;
  color: #ffffff;
  background: #006cff;
  border-radius: 8px;
  text-align: center;
  line-height: 56px;
  margin: 0 auto;
}
</style>
